/**
 * 
 */
package com.gko100.service;

import com.gko100.model.User;

/**
 * @author Administrator
 *
 */
public interface UserManager {

	
	/**
	 * @note (登录验证)
	 * @param (User user)
	 * @return (boolean类型)
	 */
	boolean validLogin(User user);
	
	/**
	 * @note (退出处理)
	 * @param (User user)
	 * @return ()
	 */
	boolean logout(User user);
	
	/**
	 * @note (根据name和password查询会员信息)
	 * @param (String name, String password)
	 * @return (User user)
	 */
	User findUserByNameAndPassword(String name, String password);
	
	/**
	 * @note (根据name查询会员信息)
	 * @param (String name)
	 * @return (User user)
	 */
	User findUserByName(String name);
	
	/**
	 * @note (注册会员)
	 * @param (User user)
	 * @return (User user)
	 */
	void add_user(User user);
	
	
	
	
	
}
